<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/cms/theme/include/taglib.jsp" %>
<html>
<head>
    <title>${site.name}&&${category.name}</title>
    <%@ include file="head.jsp" %>
</head>
<body>
<%@ include file="header.jsp" %>
<div class="am-container">
    <div class="content" id="content">
        <!-- 模块排版 -->
        <img src="${ctxStatic}/3rd-lib/echo/i/blank.gif" class="img-full" style="max-height: 149px;"
             data-echo="${ctxStatic}/theme/default/img/example.jpg"/>
        <div class="am-g">
            <div class="am-u-sm-9" style="padding: 0px;padding-right: 1.1em;">
                <div class="am-panel am-panel-default" style="margin-top: 20px;">
                    <div class="title"><span>${empty categorys?'智能饭店':categorys[0].name}</span></div>
                    <div class="am-panel-bd">
                        <!-- 文章内容 -->
                        <div id="blog-body">
                            <c:set var="categoryId" value="${empty param.categoryId?79:param.categoryId}" />
                            <c:set var="docs" value="${cms:getArticleList(categoryId,1)}"/>
                            <c:forEach items="${docs}" var="doc">
                                ${doc.articleData.content}
                            </c:forEach>
                        </div>
                    </div>
                </div>
            </div>
            <div class="am-u-sm-3" style="padding: 0px;">
                <div class="am-panel am-panel-default" style="margin-top: 20px;">
                    <div class="title"><span>${category.name}</span></div>
                    <div class="am-panel-bd">
                        <ul class="am-list am-list-static class-list">
                            <c:forEach items="${cms:getNavListBy(57)}" var="nav" varStatus="status">
                                <c:choose>
                                    <c:when test="${empty param.categoryId and status.first}"><li style="padding:0;"><a href="${ctxF}/${site.id}/${category.id}/view/example${urlSuffix}?categoryId=${nav.id}" class="am-text-truncate" style="color:#DD514C;"><i class="am-icon-hand-o-right"></i> ${nav.name}</a></li></c:when>
                                    <c:when test="${nav.id==param.categoryId}"><li style="padding:0;"><a href="${ctxF}/${site.id}/${category.id}/view/example${urlSuffix}?categoryId=${nav.id}" class="am-text-truncate" style="color:#DD514C;"><i class="am-icon-hand-o-right"></i> ${nav.name}</a></li></c:when>
                                    <c:otherwise><li style="padding:0;"><a href="${ctxF}/${site.id}/${category.id}/view/example${urlSuffix}?categoryId=${nav.id}" class="am-text-truncate">${nav.name}</a></li></c:otherwise>
                                </c:choose>
                            </c:forEach>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<%@ include file="footer.jsp" %>
</body>
</html>